﻿using BingoClientModel;
using BingoServerCommon.Common;

namespace BingoGameServerConsole
{
	/// <玩家请求房间信息 />
	public class PackageRequestRoomInfo : Package
	{


		public PackageRequestRoomInfo(EnumPackCommand mainid) : base(mainid)
		{
		}

		public PackageRequestRoomInfo(byte[] buffer, int len) : base(buffer, len)
		{
		}

		public override Package Clone(byte[] bytes)
		{
			return new PackageRequestRoomInfo(bytes, bytes.Length);
		}
		/// <summary>
		/// 
		/// </summary>
		public override void Excute(BaseRoom baseroom, Session session)
		{
            User user = (User)session.player;
            Room room = (Room)baseroom;

            room.RequestRoomInfo(user.connId);

        }
	}
}
